#pragma once
#include "ClockSource.h"
#include "event.h"
namespace Core
{
	using namespace Pattern;
	namespace Devices
	{
		class ClockSource;

		class ClockListener:public IListener<ClockSource,ClockListener>
		{

			typedef IListener<ClockSource,ClockListener> Base;
		public:
			virtual void OnClock(SourceType& clock)=0;
		protected:

			ClockListener():Base(&ClockListener::OnClock){};

		};
	}
}